using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace BodySoundSimulator.Training.PerformanceTester
{
	class TestData
	{
		#region Fields
		PointF extractedStethLocation;
		PointF markedStethLocation;
		Bitmap image;
		#endregion

		#region Properties
		public PointF ExtractedStethLocation
		{
			get { return extractedStethLocation; }
			set { extractedStethLocation = value; }
		}

		public PointF MarkedStethLocation
		{
			get { return markedStethLocation; }
			set { markedStethLocation = value; }
		}

		public Bitmap Image
		{
			get { return image; }
			set { image = value; }
		}

		public float ErrorDistance
		{
			get
			{
				return (float)Math.Sqrt((extractedStethLocation.X - markedStethLocation.X) * (extractedStethLocation.X - markedStethLocation.X)
				+ (extractedStethLocation.Y - markedStethLocation.Y) * (extractedStethLocation.Y - markedStethLocation.Y));
			}
		}
		#endregion
	}
}
